package cn.llssit.project.wechatapi.controller;

import cn.llssit.framework.web.domain.AjaxResult;
import cn.llssit.project.wechatapi.mapper.MovieNewsMapper;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Lesan
 * @Date: 2020-06-27
 */
@RestController
@RequestMapping("/wechatapi")
public class MovieNewsCotroller {
    @Autowired
    private MovieNewsMapper movieNewsMapper;

    @ApiOperation("")
    @GetMapping("/getMovieNews")
    public AjaxResult getMovieNews(){
        return AjaxResult.success(movieNewsMapper.selectAll());
    }
}
